package com.pulisher.service.impl;

import com.pulisher.bean.CourseSubjectAmountBean;
import com.pulisher.bean.CourseSubjectOrderBean;
import com.pulisher.mapper.CourseStatsMapper;
import com.pulisher.service.CourseStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Create 2023/9/11 18:56
 */
@Service
public class CourseStatsServiceImpl implements CourseStatsService {

    @Autowired
    CourseStatsMapper courseStatsMapper;

    @Override
    public List<CourseSubjectOrderBean> getCourseOrder(String date) {
        return courseStatsMapper.selectCourseOrder(date);
    }

    @Override
    public List<CourseSubjectAmountBean> getCourseAmount(String date) {
        return courseStatsMapper.selectCourseAmount(date);
    }
}
